package com.yin.myproject.zk.recipes.lock;

/**
 * @author Eason
 * @create 2018-04-12 14:06
 **/
public interface DistributeLock {
    void lock() throws Exception;
    Boolean tryLock() throws Exception;
    Boolean tryLock(long millisecond) throws Exception;
    void unlock() throws Exception;
}
